package com.linkage.educloud.ah.mvp.contract.dynamic;

import com.linkage.educloud.ah.bean.DynamicBean;
import com.linkage.educloud.ah.mvp.ABasicPresenter;
import com.linkage.educloud.ah.mvp.IBasicView;
import com.linkage.educloud.ah.mvp.ICommonModel;

import java.util.List;

/**
 * Created by Mr'Tang on 2018/9/17.
 */

public interface IDynamicListContract {
    interface IView extends IBasicView {

        void initRecyclerViewDate(List<DynamicBean> dicList);

        void setTopImage(String url);

        void updatePraise(int pos, DynamicBean bean);

        void stopRefresh();
    }

    abstract class IPresenter<T extends IBasicView> extends ABasicPresenter {
        public IPresenter(T iView) {
            super(iView);
        }

        public abstract void getClassSpaceList(String dynamic_id, int page_size, String clazz_id, int type);

        public abstract void getbackground(String clazz_id);

        public abstract void praisedynamicnew(final int pos, final DynamicBean dynamicBean, String clazz_id, final int type);

        public abstract void senddynamicmsg(final int pos,final DynamicBean bean, String clazz_id, final Long userid, int usertype, final String content);
    }

    interface IModel extends ICommonModel {

    }
}
